package com.opc.Pojo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 *螺丝修改条件
 */
@Data
public class ScrewAddCondition {
    //private String Token;
//    private int page;//区分是主页修改还是第四页修改
    //螺丝Id用于直接修改指定螺丝的数据 VVV
    private Long screwTypeId;
    private Long carId;

    // 扭力
    @NotNull(message = "请输入扭力值")
    @Pattern(regexp = "^[0-9]+(\\.[0-9]+)?$",
            message = "扭力值必须是有效的数字（小数点位置不能在两端）")
    @Min(value = 0, message = "扭力值不能小于0")
    private String torque;

    private String EmployeeName;
}
